﻿@model List<System_Role>
@{
    ViewBag.Title = "PowerList";
    Layout = "~/Views/Shared/_Layout_List.cshtml";
}

<div class="main-container">
    <div class="data-list">
        <table class="data-table display">
            <thead>
                <tr>
                    <th>角色名称</th>
                    <th>角色说明</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (System_Role m in Model)
                {
                    <tr>
                        <td>@m.Role_Name</td>
                        <td>@m.Remark</td>
                        <td>
                            <a class="btn" href="javascript:void(0);" onclick="AlertModelFrame('/System/PowerManage?roleId=@m.ID','权限设置')"><i class="icon-edit"></i>&nbsp;权限设置</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <div class="data-pager">
        @Html.Pager("pageIndex", int.Parse(ViewData["pagesize"].ToString()), int.Parse(ViewData["TotalCount"].ToString()))
        @Html.PageSize("pageIndex", "pageSize", int.Parse(ViewData["TotalCount"].ToString()))
        <div style="clear:both"></div>
    </div>
</div>